
 
Component({
  options: {
    multipleSlots: true
  },
  /**
   * 组件的属性列表
   */
  properties: {
    detail:{
      type:Object
    },
  },
  /**
   * 组件的初始数据
   */

  data: {
    // inputValue:{
    //   text:'',
    //   praise:"1"
    // },
    img:'img/search.png',
    switchA:true
  },

  ready  :function(){
    console.log(this.properties.detail)
  },

  methods: {
    aClick:function(){
      this.setData(
        {
          // commentarysDetail: this.properties.commentarys.slice(0, 3),
          switchA: false
        },
        console.log(this.data.detail)
      )
    },
    showDetail:function(){
      this.triggerEvent('showDetail',{})
      console.log("sasdD")
    },
    closeSearch:function(){
      this.triggerEvent('onCloseDetail',{})
      console.log("sasad")
    },
  bindKeyInput:function(e){
    this.setData({
    })
  },
  evaluateYes:function(){
    this.setData({
      switchA: true,
    })
  },
  closeInput:function(){
    this.setData({
      // inputValue: this.data.value
    })
  },
    evaluateNo:function(){
      this.setData({
        switchA: true,
    })
    },
  setComent:function(e){
    console.log(e)
  }
  }
})